package com.yql.entity;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;

public class Yuans implements Serializable {
    private Integer id;
    private Integer yid;
    private String name;

    @RequestMapping("index")
    public String index(@RequestParam("list") String url, Model model){
        model.addAttribute("url",url);
        return "index";
    }

    @Override
    public String toString() {
        return "Yuans{" +
                "id=" + id +
                ", yid=" + yid +
                ", name='" + name + '\'' +
                '}';
    }

    public Yuans() {
    }

    public Yuans(Integer id, Integer yid, String name) {
        this.id = id;
        this.yid = yid;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getYid() {
        return yid;
    }

    public void setYid(Integer yid) {
        this.yid = yid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
